Using material types
Material types define the property type of a material. By adjusting material property values defined by a material type, you set the appearance of a material. Each material type has a vertex shader and a fragment shader, which set the type of properties you can use in a material.
A set of material types come with Kanzi Studio. You can either add material types as you need them, or create your project using a template that already contains a set of material types.
Adding a material type to your project
To add a material type to your project:
- In the Library right-click Materials and Textures and select Load Material Type From Disk.
Select Material Type window opens.
- Go to <KanziInstallation>/Studio/Asset Library/MaterialTypes and select the directory that contains material types that best fit the needs of your project:
- ES2_High contains slower-performing material types with pixel-based shaders.
- ES2_Low contains fast-performing material types with vertex-based shaders.
- General contains material types with general purpose shaders. Because these shaders are more concerned with functionality and quality than performance, these material types are suitable for development purposes.
-
Select the material type that best fit the needs of your project and click Open.
Kanzi Studio adds the material type and creates a material using that material type. You can create additional materials from the same material type. See Using materials.
Reusing material types
When you create a material type in your Kanzi Studio project, you can reuse the material type in another Kanzi Studio project.
To reuse material types:
- In the Library > Library tab > Materials and Textures > MaterialTypes right-click the material type you want to save to disk, and select Save Material Type to Disk.
Save Material Type window opens.
- Select the name and location where you want to save the material type and click Save.
See also
Using materials
Material types and materials
Open topic with navigation